package com.lebang.mapper;

import com.lebang.configuration.datasource.DataSource;
import com.lebang.domain.SendEmail;
import com.lebang.example.SendEmailExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * SendEmailMapper继承基类
 */
@Mapper
public interface SendEmailMapper extends MyBatisBaseDao<SendEmail, Integer, SendEmailExample> {
    @DataSource("commonDB")
    List<String> selectByEnable();
    @DataSource("commonDB")
    List<String> selectByUserClass(@Param("appId") Integer appId);
    @DataSource("commonDB")
    List<SendEmail> selectAll(@Param("page") Long page,@Param("limit") Integer limit);
    @DataSource("commonDB")
    int enablebyid(@Param("id") Integer id,@Param("status") String status);
}